From: David J. MacKenzie Date: Mon, 21 Aug 1995 04:33:21 +0000 (+0000) Subject: default to user-supplied buffer. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~86162 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=3e19e687d2062c4701407bad6e713b0042ddc93c;p=emacs.git default to user-supplied buffer. --- diff --git a/src/termcap.c b/src/termcap.c index d26348e525c..2a270c454eb 100644 --- a/src/termcap.c +++ b/src/termcap.c @@ -443,6 +443,11 @@ tgetent (bp, name) } #endif /* INTERNAL_TERMINAL */ + /* For compatibility with programs like `less' that want to + put data in the termcap buffer themselves as a fallback. */ + if (bp) + term_entry = bp; + termcap_name = getenv ("TERMCAP"); if (termcap_name && *termcap_name == '\0') termcap_name = NULL;